<template>
  <div class="goods-list">
    <goods-list-item v-for="(item,i) of goods" :key="i" :goodsListItem="item" />
  </div>
</template>

<script>
import goodsListItem from "./goodsListItem";
export default {
  name: "GoodsList",
  components: {
    goodsListItem
  },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style lang="less" scoped>
.goods-list {
  display: flex;
  flex-wrap: wrap;
  //   justify-content: space-evenly;
  justify-content: space-around;
}
</style>